import Vue from 'vue'
import { Toast as Toast2 } from 'vant'

const Toast = ({ icon = 'success', message }) => {
  Toast2({
    icon,
    message
  })
}

Vue.prototype.$Toast = Toast
